﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Timetable.Base.Entities;
using Ninject;

namespace Timetable.Site.Controllers.Api
{
    public class BuildingController : BaseApiController<Building>
    {
        /// <summary>
        /// Возвращает список корпусов
        /// </summary>
        /// <returns></returns>
        public HttpResponseMessage GetAll()
        {
            return CreateResponse<IEnumerable<Building>>(DataService.All);
        }
    }
}
